<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

Route::get('think', function () {
    return 'hello,ThinkPHP5!';
});

Route::get('hello/:name', 'index/hello');

Route::get('api/v1/banner/:id','api/v1.Banner/getBanner');

Route::get('api/v1/theme','api/v1.Theme/getSimpleList');
Route::get('api/v1/theme/:id','api/v1.Theme/getComplexOne');

Route::get('api/v1/product/recent','api/v1.Product/getRecentProduct');
Route::get('api/v1/product/category','api/v1.Product/getProductByCategory');
Route::get('api/v1/product/:id','api/v1.Product/getOne',[],['id'=>'\d+']);

Route::get('api/v1/category/all','api/v1.Category/getAllCategory');

Route::post('api/v1/token/get','api/v1.Token/getToken');

Route::post('api/v1/address','api/v1.Address/CreateOrUpdateAddress');

Route::post('api/v1/order','api/v1.Order/payPlace');
